<template>
    <div class="GPLOT-Board" :style="{width: BoardWidth + 'px'}">
        <div class="GPLOT-Board-view" ref="content"></div>
        <canvas class="GPLOT-Board-horizontal" ref="rulerHorizontal" />
        <canvas class="GPLOT-Board-vertical" ref="rulerVertical" />
    </div>
</template>

<script>
import { mapState } from "vuex";
import { design } from '../libs/design.js'


export default {
    data() {
        return {
            MoveStatus: true
        }
    },
    computed: {
        ...mapState("layout", {
            BoardWidth: state => state.BoardWidth,
        }),
    },
    mounted() {
        setTimeout(() => {
            design.Board.render(this.$refs.content, this.$refs.rulerHorizontal, this.$refs.rulerVertical);
        }, 100);
    }
}
</script>